.class public Les/zh;
.super Ljava/lang/Object;
.source "Cleaner.java"


# static fields
.field private static b:I = 0x1

.field private static c:Les/xi;


# instance fields
.field private a:Les/ai;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-direct {p0, v0}, Les/zh;-><init>(I)V

    return-void
.end method

.method public constructor <init>(I)V
    .locals 2

    .line 2
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, "Cleaner"

    const-string v1, "init cleaner client..."

    .line 3
    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    sget v0, Les/zh;->b:I

    if-eq v0, p1, :cond_0

    const/4 p1, 0x0

    .line 5
    sput p1, Les/zh;->b:I

    .line 6
    :cond_0
    const-class p1, Les/zh;

    monitor-enter p1

    .line 7
    :try_start_0
    sget-object v0, Les/zh;->c:Les/xi;

    if-nez v0, :cond_1

    const-string v0, "Cleaner"

    const-string v1, "create new context instance..."

    .line 8
    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    sget v0, Les/zh;->b:I

    invoke-static {v0}, Les/xi$b;->a(I)Les/xi;

    move-result-object v0

    sput-object v0, Les/zh;->c:Les/xi;

    .line 10
    :cond_1
    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 11
    new-instance p1, Les/ai;

    invoke-direct {p1}, Les/ai;-><init>()V

    iput-object p1, p0, Les/zh;->a:Les/ai;

    return-void

    :catchall_0
    move-exception v0

    .line 12
    :try_start_1
    monitor-exit p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 3
    const-class v0, Les/zh;

    monitor-enter v0

    .line 4
    :try_start_0
    sget-object v1, Les/zh;->c:Les/xi;

    if-nez v1, :cond_0

    .line 5
    monitor-exit v0

    return-void

    .line 6
    :cond_0
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1, p0}, Les/xi;->a(Les/zh;)I

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "Cleaner"

    const-string v2, "mScanContext = null"

    .line 7
    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1}, Les/xi;->a()V

    .line 9
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1}, Les/xi;->b()V

    const/4 v1, 0x0

    .line 10
    sput-object v1, Les/zh;->c:Les/xi;

    .line 11
    :cond_1
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public a(Les/bi;)V
    .locals 1

    .line 1
    sget-object v0, Les/zh;->c:Les/xi;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {v0, p0, p1}, Les/xi;->a(Les/zh;Les/bi;)V

    return-void
.end method

.method public b()V
    .locals 3

    .line 1
    const-class v0, Les/zh;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Les/zh;->c:Les/xi;

    if-nez v1, :cond_0

    .line 3
    monitor-exit v0

    return-void

    .line 4
    :cond_0
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1, p0}, Les/xi;->a(Les/zh;)I

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "Cleaner"

    const-string v2, "mScanContext = null"

    .line 5
    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1}, Les/xi;->d()V

    .line 7
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1}, Les/xi;->b()V

    const/4 v1, 0x0

    .line 8
    sput-object v1, Les/zh;->c:Les/xi;

    .line 9
    :cond_1
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public c()J
    .locals 2

    .line 1
    sget-object v0, Les/zh;->c:Les/xi;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 2
    :cond_0
    invoke-virtual {v0}, Les/xi;->g()J

    move-result-wide v0

    return-wide v0
.end method

.method public d()J
    .locals 2

    .line 1
    sget-object v0, Les/zh;->c:Les/xi;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 2
    :cond_0
    invoke-virtual {v0}, Les/xi;->h()J

    move-result-wide v0

    return-wide v0
.end method

.method public e()J
    .locals 2

    .line 1
    sget-object v0, Les/zh;->c:Les/xi;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 2
    :cond_0
    invoke-virtual {v0}, Les/xi;->i()J

    move-result-wide v0

    return-wide v0
.end method

.method public f()V
    .locals 3

    .line 1
    const-class v0, Les/zh;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Les/zh;->c:Les/xi;

    if-nez v1, :cond_0

    .line 3
    monitor-exit v0

    return-void

    .line 4
    :cond_0
    iget-object v1, p0, Les/zh;->a:Les/ai;

    sget-object v2, Les/zh;->c:Les/xi;

    invoke-virtual {v2}, Les/xi;->e()Ljava/util/List;

    move-result-object v2

    invoke-virtual {v1, v2}, Les/ai;->a(Ljava/util/List;)V

    .line 5
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1, p0}, Les/xi;->a(Les/zh;)I

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "Cleaner"

    const-string v2, "mScanContext = null"

    .line 6
    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1}, Les/xi;->c()V

    .line 8
    sget-object v1, Les/zh;->c:Les/xi;

    invoke-virtual {v1}, Les/xi;->b()V

    const/4 v1, 0x0

    .line 9
    sput-object v1, Les/zh;->c:Les/xi;

    .line 10
    :cond_1
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public g()V
    .locals 2

    .line 1
    sget-object v0, Les/zh;->c:Les/xi;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    sget v1, Les/zh;->b:I

    invoke-virtual {v0, p0, v1}, Les/xi;->a(Les/zh;I)V

    return-void
.end method
